//
//  DoubleTwoColorProgressBar.h
//  SKPAD
//
//  Created by 何睿 on 15/6/23.
//  Copyright (c) 2015年 heeeruiii. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DoubleTwoColorProgressBar : UIControl

//左侧实际值 在范围内的百分比值，用来设置角度
@property (nonatomic, assign) CGFloat realLeftValue;
//左侧最小值，默认是0
@property (nonatomic, assign) CGFloat maxLeftValue;
//左侧最大值，默认是100
@property (nonatomic, assign) CGFloat minLeftValue;

//右侧实际值 在范围内的百分比值，用来设置角度
@property (nonatomic, assign) CGFloat realRightValue;
//右侧最小值，默认是0
@property (nonatomic, assign) CGFloat maxRightValue;
//右侧最大值，默认是100
@property (nonatomic, assign) CGFloat minRightValue;

//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView;
//背景图片
@property (nonatomic, readonly) UIImageView *backgroundView2;

//刻度层
//渐变父级
@property (nonatomic) CALayer * layerScale;
//图层,截取渐变层用
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerScale;
//绿色颜色层
@property (nonatomic) CAGradientLayer * gradientLayerGreen;
//颜色渐变层
@property (nonatomic) CAGradientLayer * gradientLayerYellow;

//实际值层
//左侧渐变父级
@property (nonatomic) CALayer * layerLeftReal;
//左侧图层,截取渐变层用
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerLeftReal;
//右侧渐变父级
@property (nonatomic) CALayer * layerRightReal;
//右侧图层,截取渐变层用
@property (nonatomic, readonly, strong) CAShapeLayer *trackLayerRightReal;

//绿色颜色层
@property (nonatomic) CAGradientLayer * realLeftGreen;
//颜色渐变层
@property (nonatomic) CAGradientLayer * realLeftYellow;

//绿色颜色层
@property (nonatomic) CAGradientLayer * realRightGreen;
//颜色渐变层
@property (nonatomic) CAGradientLayer * realRightYellow;

//设置左值
- (void)setRealLeftValue:(CGFloat)realLeftValue;
//设置右侧值
- (void)setRealRightValue:(CGFloat)realRightValue;
@end
